package com.ccproject.controller;


import com.ccproject.entity.SysUser;
import com.ccproject.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 管理员表 前端控制器
 * </p>
 *
 * @author hsc
 * @since 2019-05-31
 */
@RestController
@RequestMapping("/sys-user")
public class SysUserController {
    @Autowired
    ISysUserService sysUserService;

    @GetMapping("/test")
    public Object test() {
        SysUser user = sysUserService.getById(1);
        return user;
    }
}
